package com.yin.spring5.bean;

/**
 * User
 *
 * @author Yin Guiqing
 */
public class User {
    private String name;
    private Integer age;
    private Character gender;

    public User() {
        System.out.println("User 无参构造器执行。。。");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("User.setName 执行。。。");
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        System.out.println("User.setAge 执行。。。");
        this.age = age;
    }

    public Character getGender() {
        return gender;
    }

    public void setGender(Character gender) {
        System.out.println("User.setGender 执行。。。");
        this.gender = gender;
    }

    public void init() {
        System.out.println("自定义 User.init 执行。。。");
    }

    public void destroy() {
        System.out.println("自定义 User.destroy 执行。。。");
    }
}
